﻿#include "CmdSaveThreeDSurfacePlotMoveResultDataSetting.h"
#include <QFile>
#include <QDebug>
#include "BaseModule/IBaseSignal.h"
#include "PostCommandPy.h"

namespace PostCommand
{
    CmdSaveThreeDSurfacePlotMoveResultDataSetting::CmdSaveThreeDSurfacePlotMoveResultDataSetting()
        : CommandBase()
    {
        this->initCmdName();
    }
    CmdSaveThreeDSurfacePlotMoveResultDataSetting::~CmdSaveThreeDSurfacePlotMoveResultDataSetting()
    {
    }

    bool CmdSaveThreeDSurfacePlotMoveResultDataSetting::execute()
    {
        emit IBaseSignalInstance->signal_saveThreeDSurfacePlotMoveResultDataSetting(m_windowId,
            m_infomationId,
            m_translationX,
            m_translationY,
            m_translationZ,
            m_rotationTheta,
            m_rotationPhi);
        return true;
    }

    void CmdSaveThreeDSurfacePlotMoveResultDataSetting::undo()
    {
    }

    void CmdSaveThreeDSurfacePlotMoveResultDataSetting::redo()
    {
        // execute();
    }

    void CmdSaveThreeDSurfacePlotMoveResultDataSetting::saveThreeDSurfacePlotMoveResultDataSetting(int windowId, int infomationId, double translationX, double translationY, double translationZ,
                                                                                                   double rotationTheta, double rotationPhi)
    {
        m_windowId = windowId;
        m_infomationId = infomationId;
        m_translationX = translationX;
        m_translationY = translationY;
        m_translationZ = translationZ;
        m_rotationTheta = rotationTheta;
        m_rotationPhi = rotationPhi;
    }

} // namespace PostCommand
